package com.aaa.common.constant;

/**
 * @FileName: ConstantUtil
 * @Description: 存放当前项目中使用的所有常量
 * @Author: STB
 * @CreateTime: 2025/9/4 15:53
 * @Version: 1.0.0
 */
public class ConstantUtil {

    public final static String SHRIO_ALGORITHM_NAME = "SHA_512";
    public final static int SHRIO_HASH_ITERATIONS = 1024;

    /**
     * 内部类（接口） 定义常量的
     */
    public interface ShiroCredentialsMatcher {
        //算法名字
        String ALGORITHM_NAME_512 = "SHA-512";
        String ALGORITHM_NAME_256 = "SHA-256";
        //加密算法迭代次数
        int HASH_ITERATIONS = 1024;
    }

    /**
     * 用户状态
     */
    public interface UserStatus {
        String ENABLE_STATUS = "0";
        String DISABLE_STATUS = "1";
    }


    /**
     * 用户关联信息
     */
    public interface UserInfoRef {
        String TOKEN_PARAM_NAME = "token";
        String TOKEN_PARAM_USER_ID = "userId";
        String TOKEN_PARAM_USER_NAME = "userName";
        //....
    }

    /**
     * 支付相关的常量
     */
    public interface PayConfig {
        String APPID = "wx8087d8149331d27c";//服务号的应用号
        String MCH_ID = "1532192611";//商户号
        String APP_SECRECT = "e8cb3f526ac67e41dffb8fb4201873da";//服务号的应用密码
        String API_KEY = "Cc158380629071583806290715838062";//API密钥
        String APP_ID = "appid";
    }

    /**
     * 订单状态
     */
    public interface OrderStatus {
        //可以编写多个订单状态
        int UN_PAY_ORDER_STATUS = 1;
        //....
    }
    public interface SMS{
        String  ACCESS_KEY_ID = "LTAI5t6y2VtCSFAfxV4sRCNg";
        String  ACCESS_KEY_SECRET = "J5ZDC4HnEONVaXz3kWhAjPooIn3J6q";
        String  SIGN_NAME = "ABC商城";
        String  TEMPLATE_CODE = "SMS_205590104";
    }
    public interface RedisConstant{
        String  REDIS_HOST = "172.16.8.8";
        int  REDIS_PORT = 6379;
        String  REDIS_PASSWORD = "";
    }
}
